package com.huqing.icu.service.app;

import com.huqing.icu.base.PagingDto;
import com.huqing.icu.dto.HouseDto;
import com.huqing.icu.inout.in.app.*;
import com.huqing.icu.inout.out.app.AppHouseListResp;

import java.util.List;

public interface IAppHouseService {
    Integer insertHouse(HouseAddReq houseAddReq);

    Integer updateHouse(HouseUpdateReq houseUpdateReq);

    Integer rentOut(RentOutReq rentOutReq);

    PagingDto<AppHouseListResp> queryList(AppHouseListQueryReq queryReq, Long loginUserId);

    AppHouseListResp queryDetail(Long userId, Long houseId);

    PagingDto<AppHouseListResp> queryUserHouse(UserHouseQueryReq queryReq, Long loginUserId);

    public List<AppHouseListResp> linkHouseData(List<HouseDto> houseDtoList, Long userId);
}
